package com.fan.jiekouhomework;

public abstract class Animal {
    private  String  name;

    public Animal(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
    public String getName(String  prefix) {
        return prefix+name;
    }
    public abstract   void   eat();
}
